Repository navigation
fix(web): a wrapped thread shows when it last wrapped, not an old Wrap up - #980
Merged
Merged
Conversation
…p up A thread wrapped by hand, then used again, then wrapped again on its own (its pull request merging, or sitting idle) showed the date of the old Wrap up in the Wrapped list and was grouped under that day. The row's time now uses the user's Wrap up only while nothing newer has happened in the thread, the same rule the filing already used. Otherwise it uses the thread's last activity. The label and the list order both read this, so they still agree.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A thread wrapped by hand, then used again, then wrapped again on its own (its pull request merging, or sitting idle) showed the date of the old Wrap up in the Wrapped list. It was also grouped under that old day. Seen on a thread whose PR merged today: the row said "3d" and sat under "Last 7 days".
The filing rules already ignored a Wrap up older than the thread's last activity, but
resolveDoneTimestampstill returned it. It now uses the user's Wrap up only while it is still current (freshThreadDoneOverride), otherwise the thread's last activity. That one function feeds both the row's time and the Wrapped list's order, so they still agree.freshThreadDoneOverridenow reads the last activity directly instead of going throughresolveDoneTimestamp.Checks:
Sidebar.logicandprojectBoard.logicunit tests, the sidebar and inbox row browser tests,vp fmt,vp lint,vp run typecheck. Added one test for the reported case.